package com.cqc.lite.utils;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class BCryptPasswordEncoderUtil {

    public static void main(String[] args) {
        BCryptPasswordEncoder passwordEncoder=new BCryptPasswordEncoder();
        for(int i=0;i<5;i++){
            System.out.println(passwordEncoder.encode("123"));;
        }
//
//        System.out.println("-----------------------");
//        System.out.println(passwordEncoder.matches("123456","$2a$10$zuOCd2gE5i.q/rbI4wRU4.Ou.5d4p3K2lHQA6U8FN7oPfeKClkL92"));
//        System.out.println(passwordEncoder.matches("123456","$2a$10$2LFtleGJKXq19b7c.vhy9.Si8XFxVVPjMZuHjmTv39d3wj0vQ.Y0q"));
//        System.out.println(passwordEncoder.matches("123456","$2a$10$9xr/m1p5qkR.O7jTLT45JOpUTTAu5rQ71ALGHdUWXZs.9N2BNHNgi"));
//        System.out.println(passwordEncoder.matches("123456","$2a$10$ulCRutaKQlDByqmX09eKcuH6nYEim7PzdtokxPYi6TRFlWCW6Q5w2"));
//        System.out.println(passwordEncoder.matches("123456","$2a$10$ZsAimMBCGOzUoaBIAqIaR.YWd4SnZZaIaWDNeybAkJrVpcBMcOX7."));


//        boolean matches = passwordEncoder.matches("123", "$2a$10$Y1j/3zomgAMhvwObJw8eD.YmfCWNUJmicSaTUgNkzIEAKXThfdkp.");
//        System.out.println("---------"+matches);
    }



}
